import MockUtil from './mockutils.js';
import Mock from 'mockjs'

export default [
  {
    url: '/api/v1/demo/list.do', //请求地址
    method: 'post', //请求方式
    response: () => {
		const pageList = [];
		for (let i = 1; i <= 10; i++) {
			pageList.push(Mock.mock({
				id: '@increment',
				title: '@ctitle(25,35)',//name: Random.cname(),
				context: i + '@ctitle(25,40)',
				name: Mock.Random.cname(),
				event: '1002',
				createDate: '@datetime',
				status: '1'
			}))
		}
		let data = MockUtil.formatPaging(pageList, 15, 10, 150)
		return  MockUtil.formatMessage(data,"成功");//MockUtil.formatErrorMessage({},"失败");//
    },
  },
]
